import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';
import fire_component_msg from '@feidao/web/atom/browser/fsm/fire-component-msg';
import show from '../atom/show';
import hide from '../atom/hide';

export default async function a002(fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	//保存
	const welfare_name = fd.data.node.querySelector<HTMLInputElement>('[data-feidao-id="welfare_name"]').value;

	if (!welfare_name) {
		fire_component_msg('zj-common-002', 'ec-001', 'fail', '请输入福利项目名称');
	}
}
